﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010B7 RID: 4279
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneEnterStageCsReq : IMessage<SceneEnterStageCsReq>, IMessage, IEquatable<SceneEnterStageCsReq>, IDeepCloneable<SceneEnterStageCsReq>, IBufferMessage
	{
		// Token: 0x17003613 RID: 13843
		// (get) Token: 0x0600BF46 RID: 48966 RVA: 0x002046E3 File Offset: 0x002028E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneEnterStageCsReq> Parser
		{
			get
			{
				return SceneEnterStageCsReq._parser;
			}
		}

		// Token: 0x17003614 RID: 13844
		// (get) Token: 0x0600BF47 RID: 48967 RVA: 0x002046EA File Offset: 0x002028EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneEnterStageCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003615 RID: 13845
		// (get) Token: 0x0600BF48 RID: 48968 RVA: 0x002046FC File Offset: 0x002028FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneEnterStageCsReq.Descriptor;
			}
		}

		// Token: 0x0600BF49 RID: 48969 RVA: 0x00204703 File Offset: 0x00202903
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEnterStageCsReq()
		{
		}

		// Token: 0x0600BF4A RID: 48970 RVA: 0x0020470B File Offset: 0x0020290B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEnterStageCsReq(SceneEnterStageCsReq other) : this()
		{
			this.rebattleType_ = other.rebattleType_;
			this.eGPENEEKJMB_ = other.eGPENEEKJMB_;
			this.eventId_ = other.eventId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BF4B RID: 48971 RVA: 0x00204748 File Offset: 0x00202948
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEnterStageCsReq Clone()
		{
			return new SceneEnterStageCsReq(this);
		}

		// Token: 0x17003616 RID: 13846
		// (get) Token: 0x0600BF4C RID: 48972 RVA: 0x00204750 File Offset: 0x00202950
		// (set) Token: 0x0600BF4D RID: 48973 RVA: 0x00204758 File Offset: 0x00202958
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RebattleType RebattleType
		{
			get
			{
				return this.rebattleType_;
			}
			set
			{
				this.rebattleType_ = value;
			}
		}

		// Token: 0x17003617 RID: 13847
		// (get) Token: 0x0600BF4E RID: 48974 RVA: 0x00204761 File Offset: 0x00202961
		// (set) Token: 0x0600BF4F RID: 48975 RVA: 0x00204769 File Offset: 0x00202969
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool EGPENEEKJMB
		{
			get
			{
				return this.eGPENEEKJMB_;
			}
			set
			{
				this.eGPENEEKJMB_ = value;
			}
		}

		// Token: 0x17003618 RID: 13848
		// (get) Token: 0x0600BF50 RID: 48976 RVA: 0x00204772 File Offset: 0x00202972
		// (set) Token: 0x0600BF51 RID: 48977 RVA: 0x0020477A File Offset: 0x0020297A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventId
		{
			get
			{
				return this.eventId_;
			}
			set
			{
				this.eventId_ = value;
			}
		}

		// Token: 0x0600BF52 RID: 48978 RVA: 0x00204783 File Offset: 0x00202983
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneEnterStageCsReq);
		}

		// Token: 0x0600BF53 RID: 48979 RVA: 0x00204794 File Offset: 0x00202994
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneEnterStageCsReq other)
		{
			return other != null && (other == this || (this.RebattleType == other.RebattleType && this.EGPENEEKJMB == other.EGPENEEKJMB && this.EventId == other.EventId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BF54 RID: 48980 RVA: 0x002047F0 File Offset: 0x002029F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RebattleType != RebattleType.None)
			{
				num ^= this.RebattleType.GetHashCode();
			}
			if (this.EGPENEEKJMB)
			{
				num ^= this.EGPENEEKJMB.GetHashCode();
			}
			if (this.EventId != 0U)
			{
				num ^= this.EventId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BF55 RID: 48981 RVA: 0x00204867 File Offset: 0x00202A67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BF56 RID: 48982 RVA: 0x0020486F File Offset: 0x00202A6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BF57 RID: 48983 RVA: 0x00204878 File Offset: 0x00202A78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RebattleType != RebattleType.None)
			{
				output.WriteRawTag(32);
				output.WriteEnum((int)this.RebattleType);
			}
			if (this.EventId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.EventId);
			}
			if (this.EGPENEEKJMB)
			{
				output.WriteRawTag(96);
				output.WriteBool(this.EGPENEEKJMB);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BF58 RID: 48984 RVA: 0x002048F0 File Offset: 0x00202AF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RebattleType != RebattleType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.RebattleType);
			}
			if (this.EGPENEEKJMB)
			{
				num += 2;
			}
			if (this.EventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BF59 RID: 48985 RVA: 0x00204954 File Offset: 0x00202B54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneEnterStageCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RebattleType != RebattleType.None)
			{
				this.RebattleType = other.RebattleType;
			}
			if (other.EGPENEEKJMB)
			{
				this.EGPENEEKJMB = other.EGPENEEKJMB;
			}
			if (other.EventId != 0U)
			{
				this.EventId = other.EventId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BF5A RID: 48986 RVA: 0x002049B8 File Offset: 0x00202BB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BF5B RID: 48987 RVA: 0x002049C4 File Offset: 0x00202BC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 72U)
					{
						if (num != 96U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.EGPENEEKJMB = input.ReadBool();
						}
					}
					else
					{
						this.EventId = input.ReadUInt32();
					}
				}
				else
				{
					this.RebattleType = (RebattleType)input.ReadEnum();
				}
			}
		}

		// Token: 0x04004D11 RID: 19729
		private static readonly MessageParser<SceneEnterStageCsReq> _parser = new MessageParser<SceneEnterStageCsReq>(() => new SceneEnterStageCsReq());

		// Token: 0x04004D12 RID: 19730
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004D13 RID: 19731
		public const int RebattleTypeFieldNumber = 4;

		// Token: 0x04004D14 RID: 19732
		private RebattleType rebattleType_;

		// Token: 0x04004D15 RID: 19733
		public const int EGPENEEKJMBFieldNumber = 12;

		// Token: 0x04004D16 RID: 19734
		private bool eGPENEEKJMB_;

		// Token: 0x04004D17 RID: 19735
		public const int EventIdFieldNumber = 9;

		// Token: 0x04004D18 RID: 19736
		private uint eventId_;
	}
}
